Skip to main content
POST
[LEGACY] Create completion

Authorizations

Authorization
string
header
required

Bearer token authentication. Get your API key from the dashboard.

Body

application/json
model
string
required

ID of the model to use

prompt
any
required

The prompt(s) to generate completions for

Response

Successful response

id
string
required
object
enum<string>
required
Available options:
text_completion
created
integer
required
model
string
required
choices
object[]
required
usage
object